﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once

#include "IGraphicsNode.h"
#include "RuntimeId.h"

namespace gcmp
{
    class IElementModelShape;
    class IDocument;

    /// \brief 链接文档中的Element对象图形表达引用图形节点
    class GCMP_GRAPHICS_NODE_INTERFACE_EXPORT ILinkElementModelShapeReference : public IGraphicsNode
    {
        DEFINE_CAST_DERIVED(ILinkElementModelShapeReference, IGraphicsNode)

    public:
        /// \brief 获取链接文档中的Element对象图形表达节点
        /// \return Element图形表达节点
        GCMP_OBSOLETE_API(2023/02/01, GetLinkElementModelShape(const IDocument*) const)
        virtual const IElementModelShape* GetLinkElementModelShape() const = 0;

        /// \brief 获取链接文档中的Element对象图形表达节点
        /// \param hostDocument 主文档
        /// \return Element图形表达节点
        virtual const IElementModelShape* GetLinkElementModelShape(const IDocument* hostDocument) const = 0;

        /// \brief 获取相对于链接文档几何的转换矩阵
        /// \return 相对于链接文档几何的转换矩阵
        virtual const Matrix4d& GetGraphicsElementShapesTransform() const = 0;

    };
}


